module.exports = function(length) {
    if (typeof length !== "number" || length < 0) throw "You must provide a positive number as a parameter!";
    let res = "";
    for (let i = 0; i < length; i++) {
        res += Math.round(Math.random() * 10);
    }
    return res;
}